﻿using Microsoft.AspNet.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Dashboard.Hubs
{
	public class MosaicHub : Hub
	{
		public static void PostHealthStatus(HealthStatusView status)
		{
			var hub = GlobalHost.ConnectionManager.GetHubContext<MosaicHub>();
			hub.Clients.All.updateHealthStatus(status);
		}

		internal static void PostUsers(IEnumerable<Models.UserView> users)
		{
			var hub = GlobalHost.ConnectionManager.GetHubContext<MosaicHub>();
			hub.Clients.All.updateUsers(users);
		}
	}
}